package com.wwg.service.impl;

import com.wwg.mapper.primary.ProductMapper;
import com.wwg.mapper.slave.SlaveProductMapper;
import com.wwg.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl implements ProductService {
    @Autowired
    private ProductMapper productMapper;
    @Autowired
    private SlaveProductMapper slaveProductMapper;

    @Override
    public void getProductCount(){
        System.out.println(productMapper.getProductCount());
        System.out.println(slaveProductMapper.getProductCount());
    }
}
